package com.hairline.service;

import com.hairline.bean.bo.LoginBO;
import com.hairline.bean.vo.AuthLoginVO;
import com.hairline.bean.vo.UserInfoVO;
import com.hairline.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxAuthServiceImpl implements WxAuthService {

    @Autowired
    UserMapper userMapper;

    @Override
    public AuthLoginVO authLogin(LoginBO loginBO) {
        AuthLoginVO authLoginVO = new AuthLoginVO();
        UserInfoVO userInfoVO = new UserInfoVO();
        userInfoVO.setNickName(loginBO.getUsername());
        userInfoVO.setAvatarUrl("https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80");
        authLoginVO.setUserInfo(userInfoVO);
        authLoginVO.setTokenExpire("2020-09-05T10:26:12.094");
        authLoginVO.setToken("3e32z04aeh9vo4z0kwoc62u92y3d3");
        return authLoginVO;
    }
}
